home *** CD-ROM | disk | FTP | other *** search
- var CurrentTab = null;
-
- function ShowPanel(TabIndex)
- {
- try
- {
- TabElement = document.getElementById('TAB'+TabIndex)
-
- if (CurrentTab != TabElement)
- {
- if (CurrentTab != null)
- CurrentTab.className = 'TAB';
-
- CurrentTab = TabElement;
- TabElement.className = 'SelTAB';
-
- FRAME.location = 'prop' + TabIndex + '.htm'
- IeTools.Prop('CurPage') = TabIndex;
- }
- }
- catch(e)
- {}
- }
-
- function OnInitTAB()
- {
- try
- {
- TabIndex = IeTools.Prop('CurPage');
- ShowPanel(TabIndex);
- }
- catch(e)
- {}
- }
-
-
- function OnHover()
- {
- var IntTabIndex = event.srcElement.name - 0;
-
- try
- { FRAME.ShowDesc(IntTabIndex); }
- catch(e)
- {}
- }
-
-
- function OnKey(event)
- {
- if (event.keyCode == 27)
- window.close();
- else if (event.altKey)
- {
- try
- {
- Key = String.fromCharCode(event.keyCode).toLowerCase();
-
- for (i=0; i < document.all.length; i++)
- {
- Elem = document.all(i);
-
- if (Elem.accessKey == Key)
- {
- Elem.click();
- event.returnValue = false;
- break;
- }
- }
- }
- catch(e)
- {}
- }
- }
-
-
- switch (IeTools.Prop("RunMode"))
- {
- case 0: document.title = document.title + " ½½ [read-only] ╗╗"; break;
- case 2: document.title = document.title + " ½½ [ADMIN] ╗╗"; break;
- };
-